const {
    name
} = require('./package');

module.exports = {
    lintOnSave: false,
    devServer: {
        port: 10001,
        headers: {
            'Access-Control-Allow-Origin': '*',
        },
        hot: true
    },
    configureWebpack: {
        output: {
            // 把子应用打包成 umd 库格式
            library: `${name}-[name]`,
            // filename: `${microName}-[name].js`,
            libraryTarget: 'umd',
            jsonpFunction: `webpackJsonp_${name}`,
            // globalObject: 'this',
        },
    },
    publicPath: '/'
}